<?php
/**
 * Created by PhpStorm.
 * Author: 芸签cms www.yunqiancms.com
 * User: sun
 * Date: 2022/6/24
 * Time: 4:16 PM
 */
namespace app\common\models;

class CarouselItem extends BaseModel
{
    public $table = 'yq_carousel_item';
    public $timestamps = true;
    protected $guarded = [''];

    public  function atributeNames() {
        return [
            'carousel_id'  => '幻灯片id',
            'title'  => '标题',
            'thumb'  => '图片'
        ];
    }
    public  function rules()
    {
        return [
            'carousel_id'  => 'required',
            'title' => 'required',
            'thumb' => 'required'
        ];
    }
}